cc.Class({
  extends: cc.Component,
  properties: {
    toolSkillJsonFile: cc.JsonAsset,
    lockPanel: cc.Node,
    iconSprite: cc.Sprite,
    qualitySprite: cc.Sprite,
    descLabel: cc.RichText
  },
  onLoad: function () {
    this.descLabel.enabled = false;
  },
  initSkillInfo: function (e, t, i, o) {
    var a = Math.floor(100 * e + t);
    var c = i;
    var s = this.toolSkillJsonFile.json.find(function (e) {
      return e.id == a;
    });
    var n = s.lock > c || o;
    this.lockPanel.active = n;
    this.descLabel.string = n ? s.lockdesc : s.desc;
    this.descLabel.enabled = true;
    cc.JsonControl.getQualityBgIcon(this.qualitySprite, s.quality);
    cc.JsonControl.getSkillIcon(this.iconSprite, s.icon);
  }
});